package com.itheima.tlias84.service;

import com.itheima.tlias84.dto.SelectStudentByIdDTO;
import com.itheima.tlias84.po.InsterStudentParam;
import com.itheima.tlias84.po.SelectStudentPageParam;
import com.itheima.tlias84.po.UpdateStudentParam;
import com.itheima.tlias84.utils.ResultUtil;

import java.util.List;

public interface StudentService {
    //分页查询
    ResultUtil selectStudentByPage(SelectStudentPageParam param);
    //添加
    int insertStudent(InsterStudentParam param);
    //批量删除
    int batchDelete(List<Integer> ids);
    //根据id查询
    SelectStudentByIdDTO selectStudentById(Integer id);
    //修改
    int updateStudent(UpdateStudentParam param);
    //违纪处理
    int violation(Integer id);
}
